package net.akcegaraz.tipleague.shared.domain;

/**
 * Wrapper for player, contains name, ex. Breh.
 * 
 * @author monckdav
 * 
 */
@SuppressWarnings("serial")
public class Player extends DomainObject {
    private String name;

    /**
     * @return the name
     */
    public String getName() {
	return name;
    }

    /**
     * @param name
     *            the name to set
     */
    public void setName(String name) {
	this.name = name;
    }

    @Override
    public String toString() {
	StringBuffer stringBuffer = new StringBuffer();
	stringBuffer.append("PLAYER:\n");
	stringBuffer.append("- " + getName() + "\n");
	return stringBuffer.toString();
    }
}
